package com.nuaa.qianru.run;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

@Component
public class Alarm implements CommandLineRunner, Ordered {
    @Autowired
    Client12 client12;
    @Autowired
    Client13 client13;
    @Autowired
    Client14 client14;
    @Autowired
    Client15 client15;
    @Autowired
    Client16 client16;
    @Autowired
    Client17 client17;
    @Autowired
    Client18 client18;
    @Autowired
    Client19 client19;

    @Override
    public void run(String... args) throws Exception {
        client12.start();
        client13.start();
        client14.start();
        client15.start();
        client16.start();
        client17.start();
        client18.start();
        client19.start();
    }

    @Override
    public int getOrder() {
        return 3;
    }
}
